Lesson 0002 · ~15 min

Tokens are not words

Mission tie-in: if an LLM predicts the next token, you need a clear idea of what a token is. Tokens are the units the model actually sees, budgets, and generates.

Win for this lesson

By the end, you should be able to explain:

“What is a token, and why does tokenization matter in practice?”

Core idea

A token is a chunk of text used by the model’s tokenizer. It is not always a word and not always a single character. A token might be a whole word, part of a word, punctuation, whitespace pattern, or a short text fragment.

Why this matters

Mental model

Before the model can do next-token prediction, text is turned into tokens. The model processes token IDs, not raw characters or meanings directly.

  1. Text comes in
  2. Tokenizer splits it into tokens
  3. Tokens become IDs
  4. The model predicts the next token ID
  5. The token is decoded back into text

What this does not mean

Pressure-test yourself

Prompt A

Why is “token” a better unit than “word” when describing how an LLM works?

Prompt B

Name two practical consequences of tokenization for someone using an LLM API or writing prompts.

Benchmark answers

Prompt A: Token is the right unit because the model consumes and generates token sequences, and tokens do not line up cleanly with words. Some words split into multiple tokens, while punctuation or spaces can also matter.

Prompt B: Tokenization affects context-window usage and API cost, and it can also change how reliably the model handles code, formatting, numbers, or unusual strings.

Mini drill

Rewrite this weak statement into a safer one:

The model reads words and writes words.

Use the terms tokenizer, tokens, and context window.

Takeaway

Important correction: LLMs do not operate directly on words. They operate on tokens, and tokenization shapes context usage, cost, and sometimes behavior.

Next step options

Send me your mini-drill answer and I’ll critique it, then we can move to embeddings.